--[[
LuCI - Lua Configuration Interface

Copyright 2014 Steven Barth <emongxx@gmail.com>
Blog http://blog.emong.me

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

	http://www.apache.org/licenses/LICENSE-2.0

$Id$
]]--


module("luci.controller.kxsw", package.seeall)

function index()
	if not nixio.fs.access("/etc/config/kxsw") then
		return
	end
	
	entry({"admin", "network", "kxsw"},  alias("admin", "network", "kxsw", "fakedns"), _("科学上网"))
	entry({"admin", "network", "kxsw","fakedns"}, cbi("kxsw/fakedns"), _("防dns污染")).leaf = true
	entry({"admin", "network", "kxsw","shadowsocks"}, cbi("kxsw/shadowsocks"), _("Shadowsocks")).leaf = true
	entry({"admin", "network", "kxsw","redsocks"},  cbi("kxsw/redsocks"), _("redsocks")).leaf = true
end
